package edu.upf.da.p2p.sm.server.message;

import org.jivesoftware.smack.packet.Message;

import edu.upf.da.p2p.sm.P2PMessage;

public class UserGranted extends P2PMessage {

	public UserGranted(Message m){super(m);}

	private UserGranted(){}

	public UserGranted(String p2pUser, String smUser){
		super();
		setProperty("p2pUser", p2pUser);
		setProperty("smUser", smUser);
	}

	public String getP2PUser(){
		return (String) getProperty("p2pUser");
	}

	public String getSMUser(){
		return (String) getProperty("smUser");
	}
}
